package com.jiyun.pojo;


import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

@Data
@TableName("th_store")
@SuppressWarnings({"all"})
public class Store {

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;         //编号

    @TableField("storename")
    private String storeName;   //名称

    @TableField("rating")
    private Integer rating;     //星级

    @TableField("storestatus")
    private Integer storeStatus; //状态

    @TableField("storecontacts")
    private String storeContacts; //门店联系人

    @TableField("storephone")
    private String  storePhone;//电话号码

    @TableField("joiningtime")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern ="yyyy-MM-dd" )
    private Date joiningTime; //加盟时间

    @TableField("region")
    private String region; //区域

    @TableField("userId")
    private Integer userId; //对应用户id

    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd")
    @TableField("ex_time")
    private Date exTime; //对应用户id
}
